import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/addhui',
     
      component: () => import('../views/huiyuan/Addhui.vue'),
    },
    {
      path: '/addkeshi',
     
      component: () => import('../views/yiliaokeshi/Addkeshi.vue'),
    },
    {
      path: '/upkeshi',
     
      component: () => import('../views/yiliaokeshi/Upkeshi.vue'),
    },
    {
      path: '/showkeshi',
     
      component: () => import('../views/yiliaokeshi/Showkeshi.vue'),
    },
    {
      path: '/addmen',
     
      component: () => import('../views/mendian/Addmen.vue'),
    },
    {
      path: '/showmen',
     
      component: () => import('../views/mendian/Showmen.vue'),
    },
    {
      path: '/addjiudian',
     
      component: () => import('../views/jiudian/Addjiudian.vue'),
    },
    {
      path: '/showjiudian',
     
      component: () => import('../views/jiudian/Showjiudian.vue'),
    },
    {
      path: '/addyou',
     
      component: () => import('../views/youhui/Addyou.vue'),
    },
    {
      path: '/showyou',
     
      component: () => import('../views/youhui/Showyou.vue'),
    },
    {
      path: '/upyou',   
      component: () => import('../views/youhui/Upyou.vue'),
    },
    {
      path: '/addfang',   
      component: () => import('../views/fangxing/Addfang.vue'),
    },
    {
      path: '/showfang',   
      component: () => import('../views/fangxing/Showfang.vue'),
    },
    {
      path: '/upfang',   
      component: () => import('../views/fangxing/Upfang.vue'),
    },
    {
      path: '/addprice',   
      component: () => import('../views/Price/Addprice.vue'),
    },
    {
      path: '/showprice',   
      component: () => import('../views/Price/Showprice.vue'),
    },
  ],
})

export default router
